package org.example;

public class NewsServiceImpl implements NewsService {
    private NewsDao dao=new NewsDaoImpl();
    public void addNews(News news){
        dao.save(news);
    }
    private NewsDao dao1 =SimpleDaoFactory.getInstance();

    private NewsDao dao;
    public void setDao(NewsDao dao){
        this.dao=dao;
    }


}

